﻿<UserControl x:Class="BassTrainer.MainApp.MainMenu.MainScreen"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls">
    <UserControl.Resources>
        <DropShadowEffect BlurRadius="50" ShadowDepth="3" x:Key="Shadow" />
        <Canvas x:Key="QuestionMark" Width="76" Height="76"
                                    Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
            <Path Width="25.3333" Height="39.5833" Canvas.Left="25.3333" Canvas.Top="17.4167"
                                      Stretch="Fill" Fill="Azure"
                                      Data="F1 M 37.2083,49.0833C 39.3945,49.0833 41.1667,50.8555 41.1667,53.0417C 41.1667,55.2278 39.3945,57 37.2083,57C 35.0222,57 33.25,55.2278 33.25,53.0417C 33.25,50.8555 35.0222,49.0833 37.2083,49.0833 Z M 38,17.4167C 44.9956,17.4167 50.6666,21.9416 50.6666,28.5C 50.6666,30.875 49.0833,34.8333 45.9167,36.4167C 42.75,38 41.1667,40.1267 41.1667,42.75L 41.1667,45.9167L 33.25,45.9167L 33.25,43.5417C 33.25,38.1571 38,34.8333 39.5833,33.25C 42.75,30.0833 42.75,29.644 42.75,28.5C 42.75,25.8767 40.6233,23.75 38,23.75C 35.3766,23.75 33.25,25.8767 33.25,28.5L 33.25,30.875L 25.3333,30.875L 25.3333,29.2917C 25.3333,22.7333 31.0044,17.4167 38,17.4167 Z " />
        </Canvas>
        <Canvas x:Key="SettingsMark" Width="76" Height="76"
                                    Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
            <Path Width="38.9239" Height="38.9239" Canvas.Left="18.538" Canvas.Top="18.5381"
                                      Stretch="Fill" Fill="Azure"
                                      Data="F1 M 38,23.5C 38.8643,23.5 39.7109,23.5756 40.5337,23.7206L 42.6275,18.5381L 48.1901,20.787L 46.0964,25.9692C 47.6473,27.0149 48.9851,28.3527 50.0308,29.9036L 55.213,27.8099L 57.4619,33.3725L 52.2794,35.4664C 52.4244,36.2891 52.5,37.1357 52.5,38C 52.5,38.8643 52.4244,39.7109 52.2794,40.5337L 57.4619,42.6275L 55.213,48.1901L 50.0308,46.0964C 49.0795,47.5073 47.8865,48.7418 46.5112,49.7405L 48.7844,54.8462L 43.3041,57.2891L 41.0307,52.1828C 40.0533,52.3906 39.0394,52.5 38,52.5C 37.1357,52.5 36.2891,52.4244 35.4664,52.2794L 33.3725,57.462L 27.8099,55.213L 29.9036,50.0309C 28.3527,48.9851 27.0149,47.6473 25.9691,46.0964L 20.787,48.1901L 18.538,42.6275L 23.7206,40.5336C 23.5756,39.7109 23.5,38.8643 23.5,38C 23.5,37.1357 23.5756,36.2891 23.7206,35.4664L 18.538,33.3725L 20.787,27.8099L 25.9691,29.9036C 26.9205,28.4927 28.1135,27.2582 29.4889,26.2594L 27.2157,21.1537L 32.6959,18.7109L 34.9694,23.8172C 35.9468,23.6094 36.9606,23.5 38,23.5 Z M 38,28C 32.4771,28 28,32.4772 28,38C 28,43.5229 32.4771,48 38,48C 43.5228,48 48,43.5229 48,38C 48,32.4772 43.5228,28 38,28 Z " />
        </Canvas>

    </UserControl.Resources>
    <Grid x:Name="MainPanel">
        <TabControl HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50,50">
            <TabItem Header="Start">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="250" />
                        <ColumnDefinition Width="250" />
                        <ColumnDefinition Width="250" />
                        <ColumnDefinition Width="250" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="250" />
                        <RowDefinition Height="250" />
                    </Grid.RowDefinitions>
                    <DockPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
                        <controls:Tile x:Name="Trainer" Title="Trainer" Width="Auto" Height="Auto"
                                       Effect="{StaticResource Shadow}" Command="{Binding OpenTrainerCommand}"/>
                    </DockPanel>
                    <DockPanel Grid.Column="0" Grid.Row="1">
                        <controls:Tile x:Name="Tuning" Title="Tuner" Width="Auto" Height="Auto"
                                       Effect="{StaticResource Shadow}" Command="{Binding OpenTuningCommand}" />
                    </DockPanel>
                    <DockPanel Grid.Column="2" Grid.Row="0">
                        <controls:Tile x:Name="Metronome" Title="Metronome" Width="Auto" Height="Auto"
                                       Effect="{StaticResource Shadow}" Command="{Binding OpenMetronomeCommand}" />
                    </DockPanel>
                    <DockPanel Grid.Column="3" Grid.Row="0">
                        <controls:Tile x:Name="HelpTile" Title="Help" Background="CornflowerBlue" Width="Auto"
                                       Height="Auto" Effect="{StaticResource Shadow}" Content="{StaticResource QuestionMark}" 
                                       Command="{Binding OpenHelpCommand}" />
                    </DockPanel>
                    <DockPanel Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2">
                        <controls:Tile x:Name="Drums" Title="Drum machine" Width="Auto" Height="Auto"
                                       Effect="{StaticResource Shadow}"  Command="{Binding OpenDrumMachineCommand}" />
                    </DockPanel>
                    <DockPanel Grid.Column="3" Grid.Row="1">
                        <controls:Tile x:Name="Settings" Title="Settings" Background="CadetBlue" Width="Auto" Height="Auto"
                                       Effect="{StaticResource Shadow}" Content="{StaticResource SettingsMark}"
                                       Command="{Binding OpenSettingsCommand}" />
                    </DockPanel>
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>